/**
 * 暴露一个方法用来注册所有的全局组件，插件，图标等等
 */

import installComponent from '@renderer/utils/elementUi'
// import installDirective from '@/utils/directives'
import installIconComponent from '@renderer/utils/elementUi/icon'
import { App } from 'vue'

const registerPlugin = (app: App<Element>) => {
  
  // 注册全局类型组件和插件
  installComponent(app)

  // 注册全局icon图标
  installIconComponent(app)

  // 注册全局自定义指令
  // installDirective(app)
}

export default registerPlugin